derivation of molecular partition function for three dimension movement